package com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.beans.UserInfo;
import com.mapper.UserMapper;
@Service
public class UserServiceImpl implements UserService{
	@Resource
	private UserMapper userMapper;
	public List<UserInfo> getUserList() {
		return userMapper.getUserList();
	}

	public void updateUser(UserInfo user) {
		userMapper.updateUser(user);
	}

	public void deleteUser(int id) {
		userMapper.deleteUser(id);
	}

	public void addUser(UserInfo user) {
		userMapper.addUser(user);
	}

	public UserInfo getUserById(Integer id) {
		return userMapper.getUserById(id);
	}

	

}
